package com.brspace.qualitycontrol.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 工程表
 * </p>
 *
 * @author ${author}
 * @since 2021-04-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Engineering对象", description="工程表")
public class Engineering implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "uuid")
      @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "业主单位")
    private String ownerUnit;

    @ApiModelProperty(value = "工程名称")
    private String projectName;

    @ApiModelProperty(value = "开工时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date startTime;

    @ApiModelProperty(value = "中标单位")
    private String bidWinner;

    @ApiModelProperty(value = "招标类型(可选)")
    private int biddingType;

    @ApiModelProperty(value = "开标时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date bigOpenTime;

    @ApiModelProperty(value = "代理单位")
    private String agent;

    @ApiModelProperty(value = "项目编号")
    private String projectNumber;

    @ApiModelProperty(value = "竣工验收时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date completeTime;

    @ApiModelProperty(value = "监理单位")
    private String supervisor;

    @ApiModelProperty(value = "预算")
    private String budget;

    @ApiModelProperty(value = "形象进度")
    private String image;

    @ApiModelProperty(value = "设计单位")
    private String devise;

    @ApiModelProperty(value = "招标价")
    private Integer biddPrice;

    @ApiModelProperty(value = "评议情况")
    private String comment;

    @ApiModelProperty(value = "审计单位")
    private String auditUnit;

    @ApiModelProperty(value = "审计价格")
    private String auditPrice;

    @ApiModelProperty(value = "项目负责人")
    private String dutyName;

    @ApiModelProperty(value = "合同工期")
    private String contract;

    @ApiModelProperty(value = "存在问题")
    private String matter;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "附件")
    private String file;

    @ApiModelProperty(value = "创建时间")
      @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
